package day1601;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;

public class aaa {
    public static void main(String[] args) {
        String a = new Scanner(System.in).nextLine();
        HashMap<Character,Integer> b = new HashMap<>();
        for(int i=0;i<a.length();i++){
            char c = a.charAt(i);
            if(b.get(c)==null){
                b.put(c,1);
            }else{
                b.put(c,b.get(c)+1);
            }

        }
        System.out.println(b);
    }
}
